<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Kalnoy\Nestedset\NodeTrait;
use Illuminate\Support\Facades\DB;


class TeamCashInfo extends Model
{
    protected  $table='team_cash_info';

    protected function getScopeAttributes()
    {
        return [ 'org_id' ];
    }

    protected $fillable = [
        'org_id',
        'team_id',
        'contacts_realname',
        'contacts_email',
        'contacts_phone',
        'contacts_idno',
        'contacts_id_card_front',
        'contacts_id_card_back',
        'contacts_id_card_people',
        'bank_card_type',
        'bank_card_account',
        'bank_card_num',
        'bank_company',
        'bank_branch',
        'bank_card_open_addr',
        'bank_connect_code',
        'auth_document',
        'verify_status',
        'verify_msg',
    ];



    public function org() {
        return $this->belongsTo('App\Models\Org', 'org_id', 'id');
    }

    public function team() {
        return $this->belongsTo('App\Models\Team', 'team_id', 'id');
    }

}
